package com.spring.example;

import com.spring.example.config.AppConfig;
import com.spring.example.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zhouhengzhe
 * @description:
 * @date 2021/11/30 下午8:56
 * @since v1
 */
public class Example1 {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(AppConfig.class);
		UserService userService = context.getBean(UserService.class);
		userService.queryAll();
	}
}
